/*global __dirname */
module.exports = {
  context: __dirname,
  entry: {
    main: './client/main.jsx'
  },
  output: {
    path: __dirname + "/public",
    filename: "[name].js"
  },
  module: {
    loaders: [
      { test: /\.less$/, loader: 'style-loader!css-loader!less-loader' },
      { test: /\.jsx$/, loader: 'babel-loader' },
      { test: /\.es6$/, loader: 'babel-loader'}
    ]
  },
  resolve: {
    extensions: ['', '.js', '.json', '.coffee', '.es6', 'jsx']
  }
};
